package cn.xfdzx.android.apps.shop.model;


import cn.xfdzx.android.apps.shop.bean.ConfirmGoodBeen;
import cn.xfdzx.android.apps.shop.bean.FamliyItemBeen;
import cn.xfdzx.android.apps.shop.contract.FamilyContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;

/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */
public class FamilyModel implements FamilyContract.Model {



    @Override
    public Flowable<FamliyItemBeen> initData(String page, String limit   ) {
        return RetrofitClient.getInstance().getApi().familyItem(  page,  limit);
    }


    @Override
    public Flowable<ConfirmGoodBeen> addCar(String is_new, String uniqueId, String productId, String cartNum) {
        return  RetrofitClient.getInstance().getApi().confirmGood(is_new,uniqueId,productId,cartNum);
    }


}
